﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
//using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace DBSourceTools
{
    public partial class RenameForm : Form
    {
        private string m_NewName = "";
        private string m_FileName = "";

        public string NewName
        {
            get { return m_NewName; }
        }
        public RenameForm(string strWindowTitle)
        {
            InitializeComponent();
            this.Text = strWindowTitle;
        }


        private void btnOk_Click(object sender, EventArgs e)
        {
            this.m_NewName = this.m_tbNewName.Text;
        }

        internal void SetFileName(string strObject)
        {
            m_FileName = strObject;
            this.m_tbNewName.Text = m_FileName.Substring(m_FileName.LastIndexOf("\\") + 1);
        }
    }
}
